using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ScienceNET.ImageProcessing;

namespace ImageProcessingDemo1
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void btnInvert_Click(object sender, EventArgs e)
        {
            this.Text=System.IO.Directory.GetCurrentDirectory();
         double[,] catImage = ImageProcessing.ImageReadGray(@"..\..\cat.jpg");
         pbxOrginal.Image = ImageProcessing.Image2Bmp(catImage);
         ImageProcessing.Invert(ref catImage);
         pbxInvert.Image = ImageProcessing.Image2Bmp(catImage);
        }
    }
}